#ifndef DEVFINDCLIENT_H_
#define DEVFINDCLIENT_H_

#include <Ace/Event_Handler.h>
#include <Ace/Thread.h>
#include <Ace/Reactor.h>
#include <Ace/SOCK_Dgram_Bcast.h>
#include <boost/thread.hpp>
#include <QtGui>

class CDevFindClient : public ACE_Event_Handler
{
public:
	CDevFindClient();
	~CDevFindClient();

public:
	void	init();
	void	start_event_loop();

public:
	ACE_HANDLE		get_handle() const;
	int				handle_input(ACE_HANDLE fd = ACE_INVALID_HANDLE );
	void			

private:
	ACE_SOCK_Dgram_Bcast				m_bcast;
	boost::shared_ptr<boost::thread>	m_spThread;
	boost::shared_ptr<ACE_Reactor>      m_spReactor;
};

#endif // DEVFINDCLIENT_H_